package cn.itcast.spring.demo6;

import static org.junit.Assert.*;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CollectPropertyTest {

	@Test
	public void getCollectProperty() throws Exception {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		CollectProperty bean = (CollectProperty) context.getBean("collectProperty");
		//System.out.println(bean.getList());
		//System.out.println(bean.getMap());
		//System.out.println(bean.getSet());
		System.out.println(bean.getProperties());
	}
	
	
	
	
	
	
	
	

}
